#pragma once
#include "mythVirtualDecoder.hh"
#include "srs_librtmp.h"
#include <string>
class mythRTMPDecoder :
	public mythVirtualDecoder
{
public:
	static mythRTMPDecoder* CreateNew(const char* url){
		return new mythRTMPDecoder(url);
	}
	int MainLoop();
	~mythRTMPDecoder();
protected:
	mythRTMPDecoder(const char* url);
private:
	void FlvParser(char* data, int len);
	std::string _url;
};

